import datetime
from redis_op import Operator


op = Operator()

def get_number(prefix):
	number = str(op.hincrby('number', prefix))
	number = '0' * (4 - len(number)) + number
	date = datetime.datetime.now().strftime("%Y%m%d")
	number = prefix + date + number
	return number
